"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
// 产品列表数据
var productList = (0, vue_1.ref)([
    {
        serial: 1,
        productNo: '45451',
        productName: '丝芙兰',
        brand: '丝芙兰精华眼霜',
        spec: '50g',
        type: '单品',
        stock: 65426
    },
    {
        serial: 2,
        productNo: '451415',
        productName: '丝芙兰',
        brand: '丝芙兰精华眼霜',
        spec: '50g',
        type: '套盒',
        stock: 65426
    },
    {
        serial: 3,
        productNo: '4545',
        productName: '丝芙兰',
        brand: '丝芙兰精华眼霜',
        spec: '50g',
        type: '套盒',
        stock: 65426
    }
]);
// 筛选标签
var filterTags = (0, vue_1.ref)([]);
// 全选状态
var checkAll = (0, vue_1.ref)(false);
// 选中的产品（批量操作）
var selectedProducts = (0, vue_1.ref)([]);
// 筛选后的产品列表
var filteredProducts = (0, vue_1.computed)(function () {
    if (filterTags.value.length === 0)
        return productList.value;
    return productList.value.filter(function (item) {
        // 匹配品牌或类型
        return filterTags.value.includes(item.brand) || filterTags.value.includes(item.type);
    });
});
// 对话框状态
var dialogVisible = (0, vue_1.ref)(false);
var dialogType = (0, vue_1.ref)('add'); // add/edit
var dialogTitle = (0, vue_1.ref)('新增产品');
// 表单数据
var formData = (0, vue_1.reactive)({
    productNo: '',
    productName: '',
    brand: '',
    spec: '',
    type: '',
    stock: 0
});
// 表单验证规则
var formRules = (0, vue_1.reactive)({
    productNo: [
        { required: true, message: '请输入产品编号', trigger: 'blur' }
    ],
    productName: [
        { required: true, message: '请输入产品名称', trigger: 'blur' }
    ],
    brand: [
        { required: true, message: '请输入归属品牌', trigger: 'blur' }
    ],
    spec: [
        { required: true, message: '请输入规格', trigger: 'blur' }
    ],
    type: [
        { required: true, message: '请选择类型', trigger: 'change' }
    ],
    stock: [
        { required: true, message: '请输入库存', trigger: 'blur' }
    ]
});
// 表单引用
var productFormRef = (0, vue_1.ref)(null);
// 页面初始化
(0, vue_1.onMounted)(function () {
    // 实际项目中可在此处请求接口获取产品列表
});
// 返回操作
var handleBack = function () {
    window.history.back();
};
// 全选事件
var handleCheckAllChange = function (val) {
    checkAll.value = val;
    // 实际项目中需配合表格的全选逻辑，此处简化
};
// 批量操作
var handleBatchOpt = function () {
    if (selectedProducts.value.length === 0) {
        element_plus_1.ElMessage.warning('请选择需要操作的产品');
        return;
    }
    element_plus_1.ElMessageBox.confirm('确定对选中产品执行批量操作吗？', '提示', { type: 'warning' }).then(function () {
        element_plus_1.ElMessage.success('批量操作成功');
    }).catch(function () {
        element_plus_1.ElMessage.info('已取消操作');
    });
};
// 筛选事件
var handleFilter = function () {
    // 筛选逻辑已通过computed实现
    element_plus_1.ElMessage.success('筛选成功');
};
// 表格选中事件
var handleSelectionChange = function (val) {
    selectedProducts.value = val;
    checkAll.value = val.length === filteredProducts.value.length;
};
// 打开对话框（新增/编辑）
var openDialog = function (type, row) {
    if (row === void 0) { row = null; }
    dialogType.value = type;
    dialogTitle.value = type === 'add' ? '新增产品' : '编辑产品';
    // 重置表单
    if (productFormRef.value) {
        productFormRef.value.resetFields();
    }
    // 编辑时填充数据
    if (type === 'edit' && row) {
        Object.assign(formData, row);
    }
    else {
        // 新增时重置数据
        formData.productNo = '';
        formData.productName = '';
        formData.brand = '';
        formData.spec = '';
        formData.type = '';
        formData.stock = 0;
    }
    dialogVisible.value = true;
};
// 保存产品（新增/编辑）
var handleSave = function () {
    productFormRef.value.validate(function (valid) { return __awaiter(void 0, void 0, void 0, function () {
        var newProduct, index;
        return __generator(this, function (_a) {
            if (valid) {
                if (dialogType.value === 'add') {
                    newProduct = __assign({ serial: productList.value.length + 1 }, formData);
                    productList.value.push(newProduct);
                    element_plus_1.ElMessage.success('产品新增成功');
                }
                else {
                    index = productList.value.findIndex(function (item) { return item.productNo === formData.productNo; });
                    if (index !== -1) {
                        productList.value[index] = __assign({}, formData);
                        element_plus_1.ElMessage.success('产品编辑成功');
                    }
                }
                dialogVisible.value = false;
            }
            return [2 /*return*/];
        });
    }); });
};
// 删除产品
var handleDelete = function (row) {
    element_plus_1.ElMessageBox.confirm('此操作将永久删除该产品，是否继续？', '提示', { type: 'warning' }).then(function () {
        productList.value = productList.value.filter(function (item) { return item.productNo !== row.productNo; });
        element_plus_1.ElMessage.success('产品删除成功');
    }).catch(function () {
        element_plus_1.ElMessage.info('已取消删除');
    });
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "product-list-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-header" }));
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)({});
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign({ 'onClick': {} }, { type: "default" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "default" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleBack) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleBack,];
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "operation-bar" }));
var __VLS_8 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign({ 'onClick': {} }, { type: "success" })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "success" })], __VLS_functionalComponentArgsRest(__VLS_9), false));
var __VLS_12;
var __VLS_13;
var __VLS_14 = ({ click: {} },
    { onClick: function () {
            var _a = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                _a[_i] = arguments[_i];
            }
            var $event = _a[0];
            __VLS_ctx.openDialog('add');
            // @ts-ignore
            [openDialog,];
        } });
var __VLS_15 = __VLS_11.slots.default;
var __VLS_11;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "batch-opt" }));
var __VLS_16 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.checkAll) })));
var __VLS_18 = __VLS_17.apply(void 0, __spreadArray([__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.checkAll) })], __VLS_functionalComponentArgsRest(__VLS_17), false));
var __VLS_20;
var __VLS_21;
var __VLS_22 = ({ change: {} },
    { onChange: (__VLS_ctx.handleCheckAllChange) });
var __VLS_23 = __VLS_19.slots.default;
// @ts-ignore
[checkAll, handleCheckAllChange,];
var __VLS_19;
var __VLS_24 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24(__assign({ 'onClick': {} }, { type: "text" })));
var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "text" })], __VLS_functionalComponentArgsRest(__VLS_25), false));
var __VLS_28;
var __VLS_29;
var __VLS_30 = ({ click: {} },
    { onClick: (__VLS_ctx.handleBatchOpt) });
var __VLS_31 = __VLS_27.slots.default;
// @ts-ignore
[handleBatchOpt,];
var __VLS_27;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "filter-bar" }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
var __VLS_32 = {}.ElCheckboxGroup;
/** @type {[typeof __VLS_components.ElCheckboxGroup, typeof __VLS_components.elCheckboxGroup, typeof __VLS_components.ElCheckboxGroup, typeof __VLS_components.elCheckboxGroup, ]} */ ;
// @ts-ignore
ElCheckboxGroup;
// @ts-ignore
var __VLS_33 = __VLS_asFunctionalComponent(__VLS_32, new __VLS_32(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.filterTags) })));
var __VLS_34 = __VLS_33.apply(void 0, __spreadArray([__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.filterTags) })], __VLS_functionalComponentArgsRest(__VLS_33), false));
var __VLS_36;
var __VLS_37;
var __VLS_38 = ({ change: {} },
    { onChange: (__VLS_ctx.handleFilter) });
var __VLS_39 = __VLS_35.slots.default;
// @ts-ignore
[filterTags, handleFilter,];
var __VLS_40 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({
    label: "品牌A",
}));
var __VLS_42 = __VLS_41.apply(void 0, __spreadArray([{
        label: "品牌A",
    }], __VLS_functionalComponentArgsRest(__VLS_41), false));
var __VLS_44 = __VLS_43.slots.default;
var __VLS_43;
var __VLS_45 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_46 = __VLS_asFunctionalComponent(__VLS_45, new __VLS_45({
    label: "品牌B",
}));
var __VLS_47 = __VLS_46.apply(void 0, __spreadArray([{
        label: "品牌B",
    }], __VLS_functionalComponentArgsRest(__VLS_46), false));
var __VLS_49 = __VLS_48.slots.default;
var __VLS_48;
var __VLS_50 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({
    label: "品牌C",
}));
var __VLS_52 = __VLS_51.apply(void 0, __spreadArray([{
        label: "品牌C",
    }], __VLS_functionalComponentArgsRest(__VLS_51), false));
var __VLS_54 = __VLS_53.slots.default;
var __VLS_53;
var __VLS_55 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_56 = __VLS_asFunctionalComponent(__VLS_55, new __VLS_55({
    label: "单品",
}));
var __VLS_57 = __VLS_56.apply(void 0, __spreadArray([{
        label: "单品",
    }], __VLS_functionalComponentArgsRest(__VLS_56), false));
var __VLS_59 = __VLS_58.slots.default;
var __VLS_58;
var __VLS_60 = {}.ElCheckbox;
/** @type {[typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, typeof __VLS_components.ElCheckbox, typeof __VLS_components.elCheckbox, ]} */ ;
// @ts-ignore
ElCheckbox;
// @ts-ignore
var __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
    label: "套盒",
}));
var __VLS_62 = __VLS_61.apply(void 0, __spreadArray([{
        label: "套盒",
    }], __VLS_functionalComponentArgsRest(__VLS_61), false));
var __VLS_64 = __VLS_63.slots.default;
var __VLS_63;
var __VLS_35;
var __VLS_65 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_66 = __VLS_asFunctionalComponent(__VLS_65, new __VLS_65(__assign(__assign({ 'onSelectionChange': {} }, { data: (__VLS_ctx.filteredProducts), border: true, stripe: true }), { style: {} })));
var __VLS_67 = __VLS_66.apply(void 0, __spreadArray([__assign(__assign({ 'onSelectionChange': {} }, { data: (__VLS_ctx.filteredProducts), border: true, stripe: true }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_66), false));
var __VLS_69;
var __VLS_70;
var __VLS_71 = ({ selectionChange: {} },
    { onSelectionChange: (__VLS_ctx.handleSelectionChange) });
var __VLS_72 = __VLS_68.slots.default;
// @ts-ignore
[filteredProducts, handleSelectionChange,];
var __VLS_73 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_74 = __VLS_asFunctionalComponent(__VLS_73, new __VLS_73({
    type: "selection",
    width: "50",
}));
var __VLS_75 = __VLS_74.apply(void 0, __spreadArray([{
        type: "selection",
        width: "50",
    }], __VLS_functionalComponentArgsRest(__VLS_74), false));
var __VLS_78 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_79 = __VLS_asFunctionalComponent(__VLS_78, new __VLS_78({
    prop: "serial",
    label: "序号",
    width: "80",
    align: "center",
}));
var __VLS_80 = __VLS_79.apply(void 0, __spreadArray([{
        prop: "serial",
        label: "序号",
        width: "80",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_79), false));
var __VLS_83 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_84 = __VLS_asFunctionalComponent(__VLS_83, new __VLS_83({
    prop: "productNo",
    label: "产品编号",
    align: "center",
}));
var __VLS_85 = __VLS_84.apply(void 0, __spreadArray([{
        prop: "productNo",
        label: "产品编号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_84), false));
var __VLS_88 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_89 = __VLS_asFunctionalComponent(__VLS_88, new __VLS_88({
    prop: "productName",
    label: "产品名称",
    align: "center",
}));
var __VLS_90 = __VLS_89.apply(void 0, __spreadArray([{
        prop: "productName",
        label: "产品名称",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_89), false));
var __VLS_93 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_94 = __VLS_asFunctionalComponent(__VLS_93, new __VLS_93({
    prop: "brand",
    label: "归属品牌",
    align: "center",
}));
var __VLS_95 = __VLS_94.apply(void 0, __spreadArray([{
        prop: "brand",
        label: "归属品牌",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_94), false));
var __VLS_98 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_99 = __VLS_asFunctionalComponent(__VLS_98, new __VLS_98({
    prop: "spec",
    label: "规格",
    align: "center",
}));
var __VLS_100 = __VLS_99.apply(void 0, __spreadArray([{
        prop: "spec",
        label: "规格",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_99), false));
var __VLS_103 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_104 = __VLS_asFunctionalComponent(__VLS_103, new __VLS_103({
    prop: "type",
    label: "类型",
    align: "center",
}));
var __VLS_105 = __VLS_104.apply(void 0, __spreadArray([{
        prop: "type",
        label: "类型",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_104), false));
var __VLS_108 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_109 = __VLS_asFunctionalComponent(__VLS_108, new __VLS_108({
    prop: "stock",
    label: "库存",
    align: "center",
}));
var __VLS_110 = __VLS_109.apply(void 0, __spreadArray([{
        prop: "stock",
        label: "库存",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_109), false));
var __VLS_113 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_114 = __VLS_asFunctionalComponent(__VLS_113, new __VLS_113({
    label: "操作",
    align: "center",
}));
var __VLS_115 = __VLS_114.apply(void 0, __spreadArray([{
        label: "操作",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_114), false));
var __VLS_117 = __VLS_116.slots.default;
{
    var __VLS_118 = __VLS_116.slots.default;
    var scope_1 = __VLS_getSlotParameters(__VLS_118)[0];
    var __VLS_119 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_120 = __VLS_asFunctionalComponent(__VLS_119, new __VLS_119(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_121 = __VLS_120.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_120), false));
    var __VLS_123 = void 0;
    var __VLS_124 = void 0;
    var __VLS_125 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.openDialog('edit', scope_1.row);
                // @ts-ignore
                [openDialog,];
            } });
    var __VLS_126 = __VLS_122.slots.default;
    var __VLS_122;
    var __VLS_127 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_128 = __VLS_asFunctionalComponent(__VLS_127, new __VLS_127(__assign({ 'onClick': {} }, { type: "danger" })));
    var __VLS_129 = __VLS_128.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "danger" })], __VLS_functionalComponentArgsRest(__VLS_128), false));
    var __VLS_131 = void 0;
    var __VLS_132 = void 0;
    var __VLS_133 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.handleDelete(scope_1.row);
                // @ts-ignore
                [handleDelete,];
            } });
    var __VLS_134 = __VLS_130.slots.default;
    var __VLS_130;
}
var __VLS_116;
var __VLS_68;
var __VLS_135 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_136 = __VLS_asFunctionalComponent(__VLS_135, new __VLS_135({
    modelValue: (__VLS_ctx.dialogVisible),
    title: (__VLS_ctx.dialogTitle),
    width: "600px",
    destroyOnClose: true,
}));
var __VLS_137 = __VLS_136.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.dialogVisible),
        title: (__VLS_ctx.dialogTitle),
        width: "600px",
        destroyOnClose: true,
    }], __VLS_functionalComponentArgsRest(__VLS_136), false));
var __VLS_139 = __VLS_138.slots.default;
// @ts-ignore
[dialogVisible, dialogTitle,];
var __VLS_140 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_141 = __VLS_asFunctionalComponent(__VLS_140, new __VLS_140({
    ref: "productFormRef",
    model: (__VLS_ctx.formData),
    rules: (__VLS_ctx.formRules),
    labelWidth: "120px",
    size: "default",
}));
var __VLS_142 = __VLS_141.apply(void 0, __spreadArray([{
        ref: "productFormRef",
        model: (__VLS_ctx.formData),
        rules: (__VLS_ctx.formRules),
        labelWidth: "120px",
        size: "default",
    }], __VLS_functionalComponentArgsRest(__VLS_141), false));
/** @type {typeof __VLS_ctx.productFormRef} */ ;
var __VLS_144 = {};
var __VLS_146 = __VLS_143.slots.default;
// @ts-ignore
[formData, formRules, productFormRef,];
var __VLS_147 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_148 = __VLS_asFunctionalComponent(__VLS_147, new __VLS_147({
    label: "产品编号",
    prop: "productNo",
}));
var __VLS_149 = __VLS_148.apply(void 0, __spreadArray([{
        label: "产品编号",
        prop: "productNo",
    }], __VLS_functionalComponentArgsRest(__VLS_148), false));
var __VLS_151 = __VLS_150.slots.default;
var __VLS_152 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_153 = __VLS_asFunctionalComponent(__VLS_152, new __VLS_152({
    modelValue: (__VLS_ctx.formData.productNo),
    placeholder: "请输入产品编号",
    disabled: (__VLS_ctx.dialogType === 'edit'),
}));
var __VLS_154 = __VLS_153.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.productNo),
        placeholder: "请输入产品编号",
        disabled: (__VLS_ctx.dialogType === 'edit'),
    }], __VLS_functionalComponentArgsRest(__VLS_153), false));
// @ts-ignore
[formData, dialogType,];
var __VLS_150;
var __VLS_157 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_158 = __VLS_asFunctionalComponent(__VLS_157, new __VLS_157({
    label: "产品名称",
    prop: "productName",
}));
var __VLS_159 = __VLS_158.apply(void 0, __spreadArray([{
        label: "产品名称",
        prop: "productName",
    }], __VLS_functionalComponentArgsRest(__VLS_158), false));
var __VLS_161 = __VLS_160.slots.default;
var __VLS_162 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_163 = __VLS_asFunctionalComponent(__VLS_162, new __VLS_162({
    modelValue: (__VLS_ctx.formData.productName),
    placeholder: "请输入产品名称",
}));
var __VLS_164 = __VLS_163.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.productName),
        placeholder: "请输入产品名称",
    }], __VLS_functionalComponentArgsRest(__VLS_163), false));
// @ts-ignore
[formData,];
var __VLS_160;
var __VLS_167 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_168 = __VLS_asFunctionalComponent(__VLS_167, new __VLS_167({
    label: "归属品牌",
    prop: "brand",
}));
var __VLS_169 = __VLS_168.apply(void 0, __spreadArray([{
        label: "归属品牌",
        prop: "brand",
    }], __VLS_functionalComponentArgsRest(__VLS_168), false));
var __VLS_171 = __VLS_170.slots.default;
var __VLS_172 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_173 = __VLS_asFunctionalComponent(__VLS_172, new __VLS_172({
    modelValue: (__VLS_ctx.formData.brand),
    placeholder: "请输入归属品牌",
}));
var __VLS_174 = __VLS_173.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.brand),
        placeholder: "请输入归属品牌",
    }], __VLS_functionalComponentArgsRest(__VLS_173), false));
// @ts-ignore
[formData,];
var __VLS_170;
var __VLS_177 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_178 = __VLS_asFunctionalComponent(__VLS_177, new __VLS_177({
    label: "规格",
    prop: "spec",
}));
var __VLS_179 = __VLS_178.apply(void 0, __spreadArray([{
        label: "规格",
        prop: "spec",
    }], __VLS_functionalComponentArgsRest(__VLS_178), false));
var __VLS_181 = __VLS_180.slots.default;
var __VLS_182 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_183 = __VLS_asFunctionalComponent(__VLS_182, new __VLS_182({
    modelValue: (__VLS_ctx.formData.spec),
    placeholder: "请输入规格",
}));
var __VLS_184 = __VLS_183.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.spec),
        placeholder: "请输入规格",
    }], __VLS_functionalComponentArgsRest(__VLS_183), false));
// @ts-ignore
[formData,];
var __VLS_180;
var __VLS_187 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_188 = __VLS_asFunctionalComponent(__VLS_187, new __VLS_187({
    label: "类型",
    prop: "type",
}));
var __VLS_189 = __VLS_188.apply(void 0, __spreadArray([{
        label: "类型",
        prop: "type",
    }], __VLS_functionalComponentArgsRest(__VLS_188), false));
var __VLS_191 = __VLS_190.slots.default;
var __VLS_192 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_193 = __VLS_asFunctionalComponent(__VLS_192, new __VLS_192({
    modelValue: (__VLS_ctx.formData.type),
    placeholder: "请选择类型",
}));
var __VLS_194 = __VLS_193.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.type),
        placeholder: "请选择类型",
    }], __VLS_functionalComponentArgsRest(__VLS_193), false));
var __VLS_196 = __VLS_195.slots.default;
// @ts-ignore
[formData,];
var __VLS_197 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_198 = __VLS_asFunctionalComponent(__VLS_197, new __VLS_197({
    label: "单品",
    value: "单品",
}));
var __VLS_199 = __VLS_198.apply(void 0, __spreadArray([{
        label: "单品",
        value: "单品",
    }], __VLS_functionalComponentArgsRest(__VLS_198), false));
var __VLS_202 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_203 = __VLS_asFunctionalComponent(__VLS_202, new __VLS_202({
    label: "套盒",
    value: "套盒",
}));
var __VLS_204 = __VLS_203.apply(void 0, __spreadArray([{
        label: "套盒",
        value: "套盒",
    }], __VLS_functionalComponentArgsRest(__VLS_203), false));
var __VLS_195;
var __VLS_190;
var __VLS_207 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_208 = __VLS_asFunctionalComponent(__VLS_207, new __VLS_207({
    label: "库存",
    prop: "stock",
}));
var __VLS_209 = __VLS_208.apply(void 0, __spreadArray([{
        label: "库存",
        prop: "stock",
    }], __VLS_functionalComponentArgsRest(__VLS_208), false));
var __VLS_211 = __VLS_210.slots.default;
var __VLS_212 = {}.ElInputNumber;
/** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
// @ts-ignore
ElInputNumber;
// @ts-ignore
var __VLS_213 = __VLS_asFunctionalComponent(__VLS_212, new __VLS_212({
    modelValue: (__VLS_ctx.formData.stock),
    min: (0),
    placeholder: "请输入库存",
}));
var __VLS_214 = __VLS_213.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.formData.stock),
        min: (0),
        placeholder: "请输入库存",
    }], __VLS_functionalComponentArgsRest(__VLS_213), false));
// @ts-ignore
[formData,];
var __VLS_210;
var __VLS_143;
{
    var __VLS_217 = __VLS_138.slots.footer;
    var __VLS_218 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_219 = __VLS_asFunctionalComponent(__VLS_218, new __VLS_218(__assign({ 'onClick': {} })));
    var __VLS_220 = __VLS_219.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_219), false));
    var __VLS_222 = void 0;
    var __VLS_223 = void 0;
    var __VLS_224 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.dialogVisible = false;
                // @ts-ignore
                [dialogVisible,];
            } });
    var __VLS_225 = __VLS_221.slots.default;
    var __VLS_221;
    var __VLS_226 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_227 = __VLS_asFunctionalComponent(__VLS_226, new __VLS_226(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_228 = __VLS_227.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_227), false));
    var __VLS_230 = void 0;
    var __VLS_231 = void 0;
    var __VLS_232 = ({ click: {} },
        { onClick: (__VLS_ctx.handleSave) });
    var __VLS_233 = __VLS_229.slots.default;
    // @ts-ignore
    [handleSave,];
    (__VLS_ctx.dialogType === 'add' ? '新增' : '保存');
    // @ts-ignore
    [dialogType,];
    var __VLS_229;
}
var __VLS_138;
/** @type {__VLS_StyleScopedClasses['product-list-page']} */ ;
/** @type {__VLS_StyleScopedClasses['page-header']} */ ;
/** @type {__VLS_StyleScopedClasses['operation-bar']} */ ;
/** @type {__VLS_StyleScopedClasses['batch-opt']} */ ;
/** @type {__VLS_StyleScopedClasses['filter-bar']} */ ;
// @ts-ignore
var __VLS_145 = __VLS_144;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
